// ActionScript file
package {
    import flash.display.Shape;


	public class ButtonDisplayState extends Shape {
    	private var bgColor:uint;
    	private var size:uint;
    	private var shape:String;

    	public function ButtonDisplayState(bgColor:uint, size:uint, shape:String) {
        	this.bgColor = bgColor;
        	this.size    = size;
        	this.shape   = shape
        	draw();
    	}

    	private function draw():void {
    		if(shape == 'circle'){
    			graphics.lineStyle(2,0x777777);
        		graphics.beginFill(bgColor);
        		graphics.drawCircle(0,0,size);
        		graphics.endFill();
      		}
      		if(shape == 'tube'){
    			graphics.lineStyle(2,0x777777);
        		graphics.beginFill(bgColor);
        		graphics.drawRect(0, 0, size, size);
        		graphics.endFill();
      		}
    	}
	}

}